<?php

function timer($curr_date,$exp_date)
{
//connecting database
$host_name="localhost";
$user_name="root";
$pass_name="theshoppingbuzz";
$db_name="theshoppingbuzz";
@mysql_connect($host_name,$user_name,$pass_name) or die("couldnt connect database");
@mysql_select_db($db_name) or die("no database");
//echo "database connected";


//$tomorrow = mktime(0, 0, 0, date("m"), date("d")+1, date("y"));
//echo "Tomorrow is ".date("m/d/y", $tomorrow); 
//$curr_date=date("d");
//$exp_date=$curr_date+2;
//echo "current date : $curr_date\n";
//echo "expiry date : $exp_date\n";
//echo "your password will expire at $exp_date";


if($curr_date == $exp_date || $curr_date > $exp_date)
	{
	mysql_query("DELETE FROM users WHERE user_lname='cs'");
	}
header('Refresh: 172800; url=eemail.php');

//return($curr_date);
}
?>